package com.dly.hope.repository;

import com.dly.hope.modle.Session;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface SessionRepository extends JpaRepository<Session, String> {
    List<Session> findAllByUserIdAndDataStatus(String userId, Integer dateStatus);

    Optional<Session> findTopByUserIdAndSessionIdAndDataStatus(String userId, String sessionId, Integer dateStatus);

    List<Session> findAllByUserIdInAndSessionIdAndDataStatus(List<String> userId, String sessionId, Integer dateStatus);
}
